// 
// File:   imgmanip.h
// Author: ben
//
// Created on October 12, 2008, 7:28 PM
//

#ifndef _IMGMANIP_H
#define	_IMGMANIP_H

#define LENGTH_FILENAME 100

#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <string.h>

//#include <highgui.h>
#include <opencv/highgui.h>
//#include <cv.h>
#include <opencv/cv.h>
#include <math.h>



#include "MyImg.h"

enum Compare_options{
        COMPARE_FFT_GRAY,
        COMPARE_FFT_R,
        COMPARE_FFT_G,
        COMPARE_FFT_B,
        COMPARE_MOMENTS_I1,
        COMPARE_MOMENTS_I2,
        COMPARE_MOMENTS_I3,
        COMPARE_HIST_GRAY,
        COMPARE_HIST_R,
        COMPARE_HIST_G,
        COMPARE_HIST_B,
        COMPARE_LAST};

class ImgManip{
public:
	void setFilenames(string NameA,string NameB);
	double Compare(string var_compare,string option);
        double Compare(string var_compare);
        double Compare(int method);
        int NameIt(int method,string *general,string *options);
private:
	MyImg thisImgA;
	MyImg thisImgB;
	double CompareFFT();
        double CompareFFT(int mode);
	double CompareHist();
        double CompareHist(int mode);
        double CompareMoments(string option);
        void GenerateMonochrome(int mode,string Filename,string outfname);

};

#endif	/* _IMGMANIP_H */

